//
//  QuickMealsDB.h
//  QuickMeals2_iOS
//
//  Created by CAMILO ANTONIO RODRIGUEZ GAVIRIA on 28/09/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "Comida.h"

@interface QuickMealsDB : NSObject {

	NSString * databaseName;
	NSString * databasePath;
	sqlite3 * database;
	
	NSMutableArray * result;
}

@property (nonatomic, retain) NSMutableArray * result;

-(void) checkAndCreateDatabase;
-(void) getMeals:(NSMutableArray *)meals;
-(void) getRestaurants: (NSMutableArray *)restaurants;
-(NSMutableArray *) getResourcesByCategoryAndRestaurants: (NSString *)restaurant category:(NSString *)category;
-(Comida *) searchMealByNameAndRestaurant:(NSString *)product restaurant:(NSString *)restaurant;
-(sqlite3 *) openDatabase;
@end
